package com.personal.service;


import com.personal.domain.Contact;
import com.personal.domain.obtain.KeyValue;
import com.personal.util.partDisplay.ContactPart;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface ContactService {

    List<Contact> selectAll();


    List<ContactPart> selectPartAll();

    List<ContactPart> selectPartByKey(int enterpriseId);


    List<KeyValue> selectIdAndNameAll();

    boolean add(Contact contact);

    Contact getUpdateData(int id);
    boolean update(Contact contact);

    boolean delete(List<Integer> ids);
}
